package com.aispeech.asr.clib.post;

import com.sun.jna.Structure;

@Structure.FieldOrder({"timeStart", "timeEnd", "uid", "words", "pinyin", "pos"})
public class AlignElementStruct extends Structure {
    public long timeStart;
    public long timeEnd;
    public String uid;
    public String words;
    public String pinyin;
    public char pos;

    public static AlignElementStruct.ByReference of(long start, long end, String uid, String words, String pinyin, char pos) {
        AlignElementStruct.ByReference struct = new AlignElementStruct.ByReference();

        struct.timeStart = start;
        struct.timeEnd = end;
        struct.uid = uid;
        struct.words = words;
        struct.pinyin = pinyin;
        struct.pos = pos;

        return struct;
    }

    public static class ByReference extends AlignElementStruct implements Structure.ByReference {}
    public static class ByValue extends AlignElementStruct implements Structure.ByValue {}
}
